<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
		<meta content="black" name="apple-mobile-web-app-status-bar-style"/>
		<meta content="telephone=no" name="format-detection"/>

<title>兑换结果</title>


<script type="text/javascript">
	(function() {
		var el = document.createElement("STYLE");
		var docEl = document.documentElement;
		var portrait = ((Math.min(docEl.clientWidth, docEl.clientHeight) / 320) * 10);
		var landscape = ((Math.max(docEl.clientWidth, docEl.clientHeight) / 568) * 17.75);
		el.innerHTML = "@media screen and (orientation:portrait) { html { font-size: " + portrait + "px!important; } }\n@media screen and (orientation:landscape) { html { font-size: " + landscape + "px!important; } }";
		docEl.firstElementChild.appendChild(el);
	})();
	
	function viewGoods(goodsId){
		window.location.href="<%=path %>/uncheck/goods/view/"+goodsId;
	}
	
	function viewTrade(){
		window.location.href="<%=path %>/views/html5/trade/trade_list.jsp";
	}
	
	function toIndex(){
		window.location.href="<%=path %>/index";
	}
</script>
<link href="<%=path %>/css/stlye.css" rel="stylesheet" type="text/css" />
</head>
<body>

<div class="cg">
   <div class="cg_top"><img src="<%=path %>/images/ok.png"  height="" width="100%"/></div>
   <c:choose>
   <c:when test="${result==true}">
	   <p>运费支付成功</p>
	   <span>恭喜，您已成功领取该礼品！</span>
   </c:when>
   <c:otherwise>
	   <p>支付失败</p>
	   <span>${message}</span>
   </c:otherwise>
   </c:choose>
</div>
<div class="ann">
 <p style="background-color:#eee; color:#999;" onclick="javascript:viewTrade()">查看订单</p>
 <p onclick="javascript:toIndex()">继续兑换</p>
</div>
<jsp:include page="/views/html5/commons/footer.jsp"></jsp:include>
</body>
</html>
